require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 1,["8"] = 1,["9"] = 9,["10"] = 10,["11"] = 11,["12"] = 12,["13"] = 13,["14"] = 14,["16"] = 16,["17"] = 17,["18"] = 18,["19"] = 19,["20"] = 20,["22"] = 22,["23"] = 9,["24"] = 25,["25"] = 26,["26"] = 27,["27"] = 28,["28"] = 29,["29"] = 30,["31"] = 32,["32"] = 33,["35"] = 37,["36"] = 25,["37"] = 40,["38"] = 41,["39"] = 42,["40"] = 43,["41"] = 44,["42"] = 45,["44"] = 47,["45"] = 48,["46"] = 49,["47"] = 50,["49"] = 40,["50"] = 57,["51"] = 58,["52"] = 57,["53"] = 61,["54"] = 62,["55"] = 61,["56"] = 65,["57"] = 66,["58"] = 65,["59"] = 69,["60"] = 70,["61"] = 69,["62"] = 73,["63"] = 74,["64"] = 73,["65"] = 77,["66"] = 78,["67"] = 77,["68"] = 81,["69"] = 82,["70"] = 81,["71"] = 85,["72"] = 86,["73"] = 85,["74"] = 2,["75"] = 1});
local ____exports = {}
____exports.default = __TS__Class()
local DataBase = ____exports.default
DataBase.name = "DataBase"
function DataBase.prototype.____constructor(self)
end
function DataBase.getData(self, ____type, handle)
    if not IsHandle(handle) then
        local tb = debug.traceback()
        log.error(("DataBase.getData():" .. ____type) .. ":你传的handle为空或0！")
        log.error(tb)
        return nil
    end
    local key = ____type .. tostring(GetHandleId(handle))
    local data = self.dataBaseContext[key]
    if not data then
        data = {}
        self.dataBaseContext[key] = data
    end
    return data
end
function DataBase.setData(self, ____type, handle, obj)
    if not IsHandle(handle) then
        local tb = debug.traceback()
        log.error(("DataBase.setData():" .. ____type) .. ":你传的handle为空或0！")
        log.error(tb)
        return nil
    end
    local key = ____type .. tostring(GetHandleId(handle))
    if obj == nil and self.dataBaseContext[key] == nil then
        return
    end
    self.dataBaseContext[key] = obj
end
function DataBase.clearData(self, ____type, handle)
    if not IsHandle(handle) then
        local tb = debug.traceback()
        log.error(("DataBase.clearData():" .. ____type) .. ":你传的handle为空或0！")
        log.error(tb)
        return nil
    end
    local key = ____type .. tostring(GetHandleId(handle))
    local data = self.dataBaseContext[key]
    if data then
        self.dataBaseContext[key] = nil
    end
end
function DataBase.getUnitSolarData(self, handle)
    return ____exports.default:getData("Unit", handle)
end
function DataBase.clearUnitSolarData(self, handle)
    ____exports.default:clearData("Unit", handle)
end
function DataBase.getItemSolarData(self, handle)
    return ____exports.default:getData("Item", handle)
end
function DataBase.clearItemSolarData(self, handle)
    ____exports.default:clearData("Item", handle)
end
function DataBase.getDialogButtonSolarData(self, handle)
    return ____exports.default:getData("DialogButton", handle)
end
function DataBase.clearDialogButtonSolarData(self, handle)
    ____exports.default:clearData("DialogButton", handle)
end
function DataBase.getPlayerSolarData(self, handle)
    return ____exports.default:getData("Player", handle)
end
function DataBase.clearPlayerSolarData(self, handle)
    ____exports.default:clearData("Player", handle)
end
DataBase.dataBaseContext = {}
____exports.default = DataBase
return ____exports
